package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.ExperimentPhase;
import com.brillilab.domain.vo.experiments.ExperimentPhaseProcessVo;
import com.brillilab.domain.vo.experiments.ExperimentPhaseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实验阶段 Mapper 接口
 * </p>
 *
 * @author XuZue
 * @since 2019-04-16
 */
public interface ExperimentPhaseMapper extends BaseMapper<ExperimentPhase> {

    List<ExperimentPhaseVo> selectExperimentPhaseVo(@Param("experimentId")Long experimentId);

    List<ExperimentPhaseVo> selectExperimentPhaseVoList(@Param("experimentId")Long experimentId);

    List<ExperimentPhaseProcessVo> selectExperimentPhaseVoOfProcess(@Param("experimentId")Long experimentId);

    //**** WuMenghao ****//
    int logicallyDeleteBatchByExperimentId(@Param("experimentId") Long experimentId);

    int insertBatch(List<ExperimentPhase> newPhases);
    //**** end ****//
}
